<extend name='Layout/popup' />
<block name="content">
	<div class="popup-header ">
		<div class="pull-left">
			<h1>回复给:{$reply_name}</h1>
		</div>
		<div class="pull-right">
			<a id="btn_save" class="btn">确定</a>
			<a onclick="myclose();" class="btn btn-return">关闭</a>
		</div>
	</div>
	<div class="popup-body layui-form" style="height: 420px;overflow-y: auto;">
		<div class="box">
			<div class="col-xs-12">
				<textarea  class="simple" id="content" name="content" class="col-xs-12" check="required" info="请输入内容"></textarea>
			</div>
		</div>
		<div class="box">
			<label class="col-xs-2 input-label" for="name">附件：</label>
			<div class="col-xs-10">
				{:widget('file_upload/add')}
			</div>
		</div>
	</div>
</block>
<block name="js">
	<script type="text/javascript">
		function save() {
			window.onbeforeunload = null;
			if (check_form("form_data")) {
				var vars = $("#form_data").serialize();
				send_ajax("{:url('reply')}", vars, function(data) {
					if (data.status) {
						ui_alert(data.info, function() {
							parent.location.reload(true);
							myclose();
						});
					}
				});
			}
		}
	</script>
</block>